package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(40)"`
	Password string `gorm:"type:varchar(40)"`
}
type Role struct {
	gorm.Model
	Name string `gorm:"type:varchar(40)"`
}
type Node struct {
	gorm.Model
	Name string `gorm:"type:varchar(40)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Repo struct {
	gorm.Model
	Name string `gorm:"type:varchar(40)"`
	Num  string `gorm:"type:varchar(40)"`
	Cope string `gorm:"type:varchar(40)"`
}
type Order struct {
	gorm.Model
	OrderAdder string `gorm:"type:varchar(40)"`
	OrderName  string `gorm:"type:varchar(40)"`
	Rid        int    `gorm:"type:int"`
}
type RepoOrder struct {
	Id         int
	Name       string
	Num        string
	Cope       string
	OrderAdder string
	OrderName  string
}
